﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microhard.FMCG.Buz.Interfaces;
using Microhard.FMCG.Buz.Impls;
using Microhard.FMCG.Buz.Models;

namespace Microhard.FMCGClient
{
    public partial class frmListOrder : Form
    {
        private IOrder _iOrder = new OrderImpl();

        public frmListOrder()
        {
            InitializeComponent();
            //默认显示最近一周的
        }

        public void ShowNew()
        {
            this.dgvOrder.DataSource = _iOrder.Query(new FMCG.Buz.Models.OrderModel() { });
        }

        public void BindData(OrderModel model)
        {
            this.dgvOrder.DataSource = _iOrder.Query(new FMCG.Buz.Models.OrderModel() { });
        }

        private void btnQuery_Click(object sender, EventArgs e)
        {

        }

        private void dgvOrder_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0)
            {

            }
        }


    }
}
